/* eslint-disable */
import Vue from 'vue'
import Router from 'vue-router'
// import NavBar from '@/components/navbar/src/navbar.vue'
import HelloWorld from '@/pages/demo/hello'
import Test from '@/pages/demo/test'


Vue.use(Router)
Router.prototype.navigateBack = function (index) {
  this.isBack = true
  if (index) {
    this.go(index)
  } else {
    this.back()
  }
}

Router.prototype.navigateTo = function (url){
  this.push(url);
}

Router.prototype.redirectTo = function (url){
  console.log(url);
}

export default new Router({
  routes: [
    {
      path: '/',
      name: 'hello',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'hello',
      component: HelloWorld
    },
    // {
    //   path: '/navbar',
    //   name: 'navbar',
    //   component: NavBar},
    {
      path: '/test',
      name: 'Test',
      component: Test
    }
  ]
})
